import http from '@/libs/http'
class SpecificationServer {
  async list() {
    let res = await http.post('/specification/list', {})
    return res
  }

  async add(row) {
    let res = await http.post('/specification/add', row)
    return res
  }

  async edit(row) {
    let res = await http.post('/specification/edit', row)
    return res
  }

  async del(row) {
    let res = await http.post('/specification/del', row)
    return res
  }
}

const specificationServer = new SpecificationServer()
export default specificationServer
